#if 0
struct _mmap
{
  uint_16 base_addr_low;
  uint_16 base_addr_high;
  uint_16 length_low;
  uint_16 length_high;
  uint_16 type;
};


extern uint_16 buffsize;
extern struct _mmap buff;



void system_info()
{
    int n = buffsize;
  
  struct _mmap *mmap = &buff;
  
  clr();

  if(n == 0)
  {
    printf("BIOS interput 15H with EAX = E802H not supported");
    return 0;
  }
  
  if (n == 1)
  {
    printf("Memery: %d MB", (mmap->base_addr_high/1024)+(mmap->base_addr_low/16));
    return 0;
  }

  if (n >= 20)
  {
    printf("Base       Len        Type\n");
    n/=20;
    while (n--)
    {
      printf("%x %x        %x %x         %d\n", mmap->base_addr_high, mmap->base_addr_low, mmap->length_high, mmap->length_low, mmap->type);
      mmap++;
    }
  }
  
  
}



#endif
